
package com.neuedu.aspectj.xml;

import com.neuedu.jdk.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestXmlAspectJ {
    public static void main(String[] args){
        ApplicationContext ac=new ClassPathXmlApplicationContext("beans1.xml");
        UserDao userDao=(UserDao)ac.getBean("userDao");
        userDao.addUser();
        userDao.deleteUser();
    }
}
